

package com.hexinfo.dmpro.dev.data.transfer.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hexinfo.dmpro.common.base.PageResult;
import com.hexinfo.dmpro.dev.data.transfer.model.DesensitizeFieldList;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * 脱敏字段配置表
 *
 * @author yyh.huang
 * @date 2023-09-19 19:04:23
 */
public interface IDesensitizeFieldListService extends IService<DesensitizeFieldList> {

    PageResult queryList(Page page, DesensitizeFieldList desensitizeFieldList);

    List<DesensitizeFieldList> queryListNoPage();

    List<DesensitizeFieldList> queryListNoPage(DesensitizeFieldList desensitizeFieldList);

    List<DesensitizeFieldList> queryDesensitizeField(String dbName, String tableName);

    boolean importFromExcel(MultipartFile file);

    void create(DesensitizeFieldList desensitizeFieldList);

    void reset();

    boolean removeByFunctionIds(List<String> functionIds);

    boolean removeByFunctionMapIds(List<String> functionMapIds);

    void disabledByIds(List<String> ids);
}
